<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="project_id" class="control-label col-xs-12 col-sm-2">{:__('Project')}:</label>
        <div class="col-xs-12 col-sm-6">
            <select id="project_id" data-rule="required" class="form-control selectpicker show-tick" name="row[project_id]" data-live-search="true">
                {foreach name="project" item="vo"}
                <option value="{$vo.id}" {in name="vo.id" value="(int)$row.project_id,$pid"}selected{/in}>{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-parent_id" class="control-label col-xs-12 col-sm-2">财务科目:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-paymentid" data-primary-key="id" data-params='{"paytype":1}' data-source="payment/type/selectpage" data-field="name" class="form-control selectpage" name="row[paymentid]" type="text" value="{$row.paymentid}">
        </div>
    </div>
    <div class="form-group">
        <label for="amount" class="control-label col-xs-12 col-sm-2">{:__('Amount')}（&yen;）:</label>
        <div class="col-xs-12 col-sm-6">
            <input type="text" class="form-control" id="amount" name="row[amount]" value="{$row.amount}" data-rule="required;decimal" />
        </div>
    </div>
    <div class="form-group">
        <label for="summary" class="control-label col-xs-12 col-sm-2">{:__('Summary')}:</label>
        <div class="col-xs-12 col-sm-6">
            <input type="text" class="form-control" id="summary" name="row[summary]" value="{$row.summary}" />
        </div>
    </div>
    <div class="form-group">
        <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="remark" name="row[remark]" value="{$row.remark}" />
        </div>
    </div>
    <!-- <div class="form-group">
        <label for="c-type" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['0'=>__('Unpaid'),'1'=>__('Paid')],$row['status'])}
        </div>
    </div> -->
    <input type="hidden" id="status" name="row[status]" value="0" />
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="button" class="btn btn-default btn-embossed" onClick="closeLayerWin(this)">{:__('Close')}</button>
        </div>
    </div>
</form>